package com.linln.admin.app.validator;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.*;

/**
 * @author 陶富成
 * @date 2021/07/09
 */
@Data
public class VersionValid implements Serializable {
    @NotEmpty(message = "版本名称不能为空")
    private String version;
    @NotNull(message = "开发负责人不能为空")
    private Long leader_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date start_time;
    @Size(message = "需求概述不要太长", max = 500, min = 0)
    private String demand_title;
}